'''
Created on Jan 8, 2015

@author: arthurchang
'''
import os  


def calculate_file_num(folder_path):
    """ This is a test. """
    file_list = os.listdir(folder_path)
    dif_file_list = [result_file for result_file in file_list \
                              if os.path.getsize(folder_path + \
                                              os.path.sep + result_file) != 0]
    total_num = len(file_list)
    dif_file_num = len(dif_file_list)

    return total_num, dif_file_list
    
    
total, dif = calculate_file_num("/sandbox/Downloads/WebDemo/Release/Cobol_114C113_Case+Result/CompareResult")
print total
print dif